package com.oceansoft.mobile.econsole.modules.ascproject.persistence;

import com.oceansoft.mobile.econsole.modules.ascproject.entity.*;
import com.oceansoft.mobile.econsole.modules.base.entity.Query;
import com.oceansoft.mobile.econsole.modules.jlwt.entity.IstPascMonitorApply;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;

/**
 * Created by wzy on 2016/2/2.
 */
@Repository
public interface IProjectYyMapper {
    List<ArrangementInfo> getArrangeMenet(@Param("orgId") String orgId,
                                          @Param("caseGuid") String caseGuid,
                                          @Param("startTime") String startTime,
                                          @Param("endTime") String endTime);

    int getProjectBillId(@Param("perfix") String perfix);

    int getYyNo(@Param("perfix") String perfix);


    ArrangementInfo getYyTimeInfo(@Param("yyGuid") String yyGuid);

    int insertProject(ProjectEntity ent);
    int insertProjectMaterial(ProjectMaterialEntity projectMaterialEntity);
    int insertProjectStatus(ProjectStatusEntity ent);
    int insertYyProject(YyProjectEntity ent);
    int insertYyProjectStatus(YyProjectStatusEntity ent);

    List<ProjectInfo> getPrjYyList(Query query);

    YyProjectEntity getYyInfo(@Param("prjGuid") String prjGuid);
    int getOffCount(@Param("startDate") String startDate,@Param("endDate") String endDate);

    int getSeqNumber (@Param("perpt") String perpt);
    void inserSeqNumber (@Param("orderno") String orderno,@Param("prept") String prept);

    int insertMonitApply(IstPascMonitorApply ent);
    int formInsert(HashMap<String,Object> ent);
    int insertInCustody(InCustodyPersonEntity inCustodyPersonEntity);
    List<String> getYyDataArrange(@Param("yyq") String yyq);

}
